// 博客交互功能
document.addEventListener('DOMContentLoaded', function() {
    const readMoreButtons = document.querySelectorAll('.read-more');
    
    readMoreButtons.forEach(button => {
        button.addEventListener('click', function() {
            const article = this.closest('.blog-post');
            const title = article.querySelector('h2').textContent;
            alert(`正在加载文章: ${title}`);
            // 在实际应用中，这里可以跳转到文章详情页
        });
    });
    
    // 导航菜单点击效果
    const navLinks = document.querySelectorAll('nav a');
    navLinks.forEach(link => {
        link.addEventListener('click', function(e) {
            e.preventDefault();
            alert(`导航到: ${this.textContent}`);
        });
    });
});